package com.crm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.crm.entity.CompanyEntity;
import com.crm.mapper.EntityMapper;
import com.crm.service.EntityService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhangzhen
 * @since 2025-05-13
 */
@Service
public class EntityServiceImpl extends ServiceImpl<EntityMapper, CompanyEntity> implements EntityService {


    public List<CompanyEntity> getAllHistoryData() {
        LambdaQueryWrapper<CompanyEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(CompanyEntity::getCompanyNameInEnglish, "").or().isNull(CompanyEntity::getCompanyNameInEnglish);
        return this.list(queryWrapper);
    }

}
